import { ElNotification } from 'element-plus'

export function Success(msg,title="Success"){
    ElNotification({
        title: title,
        message: msg,
        type: 'success',
        duration: 3000
      })
}
export function Warning(msg,title="Warning"){
    ElNotification({
        title: title,
        message: msg,
        type: 'warning',
        duration: 3000
      })
}
export function Info(msg,title="Info"){
    ElNotification({
        title: title,
        message: msg,
        type: 'info',
        duration: 3000
      })
}
export function Error(msg,title="Error"){
    ElNotification({
        title: title,
        message: msg,
        type: 'error',
        duration: 3000
      })
}
